<extend name="Public:base" />
<block name="content">
	<div class="page-header">
		<h1>
			{$breadcrumb2}
			<small>
				<i class="icon-double-angle-right"></i>
				{$crumbs}
			</small>
		</h1>
	</div>
	<ul class="nav nav-tabs">

		<li class="active"><a href="#tab-member" data-toggle="tab">分配群组</a></li>

	</ul>
	<form class="form-horizontal" id="validation-form"  method="post" action='{$action}'>
		<div class="tab-content">
			<notempty name="Think.get.id">
				<input name="a_id" type="hidden" value="{$Think.get.id}" />
			</notempty>
			<div class="tab-pane active" id="tab-member">
				<table class="table table-binfoed">
					<tr>
						<td>用户名称</td>
						<td><input  type="text" readonly name="title" value="{$data.a_uname}"></td>
					</tr>

					<tr>
						<td>群组名称</td>
						<td><select name="group_id">
							<?php if(isset($auth)&&!empty($auth)) :?>
							<option value="{$auth[0]['id']}">{$auth[0]['title']}</option>
							<?php endif;?>
							<volist name="list" id="m" empty="$empty">
								<option value="{$m.id}">{$m.title}</option>
								</volist>
						</select></td>
					</tr>


				</table>
				<div class="form-group">

					<div style="margin-left:20px;">
						<input name="send" type="submit" value="提交" class="btn btn-primary" />
					</div>
				</div>
			</div>


		</div>
	</form>
</block>
<block name="javascript">
	<script>
		$(function(){


		$('.btn').click(function(){

			if($('#pwd').val()==''){
				alert('密码必填');
				return false;
			}
			if($('#pwd').val().length<6){
				alert('密码长度必须大于等于6位！！');
				return false;
			}
		});
		});
	</script>

</block>